﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FantastPlatform.Community.IMode;
using FantastPlatform.Framework.Core;
using Newtonsoft.Json;
using FantastPlatform.Framework.Common.Serializable;


namespace FantastPlatform.Community.Model
{
    public class Business:Item,IBusiness
    {
        public virtual double longitude { get; set; }
        public virtual double latitude { get; set; }
        public virtual string Address
        {
            get;
            set;
        }
        public virtual IList<IPlaceType> PlaceTypes
        {
            get;
            set;
        }

        public virtual IList<IPurpose> Purposes
        {
            get;
            set;
        }
        [JsonIgnore]
        public virtual Framework.IModel.IEmployee PoliceMan
        {
            get;
            set;
        }      
        public virtual IList<IPerson> Persons
        {
            get;
            set;
        }

        #region IBusiness 成员


        public virtual FantastPlatform.Framework.IModel.IOrganization Station
        {
            get;
            set;
        }

        public virtual FantastPlatform.Framework.IModel.IOrganization ResponsibilityArea
        {
            get;
            set;
        }

        public virtual FantastPlatform.Framework.IModel.IStreet Street
        {
            get;
            set;
        }

        #endregion

        #region IBusiness 成员


        public virtual string Range
        {
            get;
            set;
        }

        #endregion

        #region IBusiness 成员


        public virtual DateTime? Deadline
        {
            get;
            set;
        }

        #endregion
    }
}
